home *** CD-ROM | disk | FTP | other *** search
- DefineVariables
- Text [CompanyName] := AVANCE LOGIC, INC.
- Text [ProductName] := Avance Logic,Inc. ALG 2302/1301
- Logical [OfferInstallationDirectoryChoice] := Y
- Directory [DefaultInstallationDirectory] := \WIN\SYSTEM
- Directory [TempDirectory]
- Text [Bitmap1] := ali.bmp
- Text [TempDriveLetter]
- Text [ModifyMode] := MODIFY
- Number [MinimumFilesSetting] := 20
- Number [MinimumBuffersSetting] := 20
- Directory [ReadmeFileName]
- Logical [InquireAboutSystemFileLocation] := Y
- Logical [AskBeforeFileReplacement] := N
- Text [ExitMessage] := Thank again!
- Directory [ProgramToRun]
- Logical [AddInstallDirectoryToPath] := N
- Text [MinimumOSVersion]
- Number [MinimumSystemMemoryRequiredPresent]
- Number [SpaceWeNeedToInstall] := 700000
- Logical [AllowCGA] := N
- Logical [AllowMDA] := N
- Logical [Allow808x] := N
- Logical [Allow80286] := Y
- Logical [MathCoprocessorRecommended] := N
- Logical [FixedDiskRequired] := Y
- Text [NetWorkInstallation] := DisallowNetwork
- Logical [UseShadows] := Y
- Text [MainBorder] := None
- Text [PopupBorder] := Single
- Text [TopLine] := Installing Avance Logic 2302/1301 Resolutions
- Text [TopLineColors] := WhiteOnBrown
- Text [BottomLineColors] := WhiteOnLightGray
- Text [PopupColors] := WhiteOnCyan
- Text [AttentionColors] := WhiteOnRed
- Text [SpecialPopupColors] := WhiteOnBrown
- Text [Module1Name] := Windows 3.0
- Text [Module1Groups] := 1
- Text [Module1Description] := Windows 3.0 Drivers
- Text [Module2Name] := Windows 3.1
- Text [Module2Groups] := 2
- Text [Module2Description] := Windows 3.1 Drivers
- Text [ExpressSetupDescription]
- Text [CustomSetupDescription] := Please Sellect Which Which Windows Version
- Text [ExtractionOptions]
- ;; remaining variables are not initialized from external Script Data File
- Logical [NeedToTerminate] := N
- Logical [Installed] := N
- Text [DisplayAdapterSummary]
- Text [CPUTypeSummary]
- Text [NetworkActive]
- Text [MathCoprocessorStatus]
- Text [InstallationDriveSummary]
- Text [OSVersionSummary]
- Text [SystemMemorySummary]
- Logical [InsufficientSystem] := N
- Logical [CompatibilityNoticeGiven] := N
- Logical [NeedToModify] := N
- Text [PathTask]
- Text [BuffersTask]
- Text [FilesTask]
- Text [BackgroundCharacter] := B0
- Text [ScreenColors] := WhiteOnBlue
- Text [BottomLine]
- Number [Black]
- Number [White]
- Number [TempDirSpaceRequired] := 300000
- EndDefineVariables
- ;; Set up basic screen appearance since there will be a brief delay
- ;; before the external data is ready to use
- ;;SetScreenAttrTo Default
- ;;SetBackgroundCharTo [BackgroundCharacter]
- ;;ClearScreen
- ;;[TempDirectory] := [TempDriveLetter]:
-
- Procedure Logo
- LoadBitMap 1 [InstallationDirectory]\[Bitmap1] @xy(Center,2)
- ShowBitMap 1
- EndProcedure
-
- Do InstallSupportFiles
-
- Procedure InstallSupportFiles
- If DriveIsRemoveable [InstallFromDrive]
- [InstallationDirectory] := [InstallFromDrive]:
- SetMouseCursor Wait
- Do Logo
- Do Install
- SetMouseCursor Arrow
- Do InstallProgramGroup
- Else
- [InstallationDirectory] := [InstallFromDirectory]
- If [InstallFromDirectory] Contains \ALGUL02\
- If FileExists [InstallFromDirectory]\al8p02.drv
- Dialog @xy(Center,Center) WhiteOnBlack
- Please copy windows drivers into another
- directory except [InstallFromDirectory]
- EndDialog
- SoLong Quietly
- Else
- Do Logo
- EndIf
- Else
- SetMouseCursor Wait
- Do Logo
- Do Install
- SetMouseCursor Wait
- Do InstallProgramGroup
- EndIf
-
- EndIf
- EndProcedure
-
- Procedure InstallProgramGroup
- Dialog [YesOrNo1] @xy(Center,Center) WhiteOnBlack UseHeader "INSTALL for Windows Program Manager Group"
- Would you like to place INSTALL in a Windows program group?
- EndDialog
- If [YesOrNo1] = Y
- BuildProgramGroup "Avance Logic 2302/1301-Resolutions" ALGUL02.GRP
- [TempDirectory]\VMASTER.EXE "AvanceLogic,Inc 2302/1301"
- [TempDirectory]\VPM.EXE
- [TempDirectory]\ALPLAYER.EXE
- EndBuildProgramGroup
- EndIf
- EndProcedure
-
-
- Procedure Install
- [String1] := C
- [TempDriveLetter] := BlankString
- [Number1] := [TempDirSpaceRequired]
- :CheckNextDrive
- If [String1] > B
- If DriveIsPresent [String1]
- If DriveIsRemoveable [String1]
- ;;do nothing
- Else
- If FreeSpaceOnDrive [String1] > [Number1]
- [TempDriveLetter] := [String1]
- [Number1] := FreeSpaceOnDrive [String1]
-
- Else
- :NextDrive
- IncrementString [String1]
- If DriveIsCDROM [String1]
- GoTo NextDrive
- EndIf
- If DriveIsRemote [String1]
- GoTo NextDrive
- EndIf
- GoTo CheckNextDrive
-
- EndIf
- EndIf
- EndIf
- EndIf
- If [String1] = Z
- GoTo ExitGetTempDir
- EndIf
- :ExitGetTempDir
- ;; ClearScreen
- ;; UpdateWindow
- If [TempDriveLetter] = BlankString
- Dialog @xy(Center,Center) UseHeader "Disk Space Error"
- .LSorry, This Installation requires at least [TempDirSpaceRequired] bytes of Fixed Disk
- .LSpace in order to successfully install!
- EndDialog
- SoLong
- Else
- [TempDirectory] := [TempDriveLetter]:\ALGUL02
- CreateDirectoryIfNecessary [TempDirectory]
- Delay 2000
- ;;ClearScreen
- ;;UpdateWindow
- EndIf
-
- SetReplacementInquiry off
- SetMouseCursor Wait
- TextBox @xy(Center,Center)
- Copying Installation Files ...
- EndTextBox
- ;; QueAllFiles to [WindowsSystemDirectory]
- QueFileGroup 1 to [WindowsSystemDirectory]
- GetQuedFiles Quietly
-
-
- CopyFiles from [InstallationDirectory] to [WindowsSystemDirectory] Quietly
- ALIDCI.DRV
- EndCopyFiles
-
- SetMouseCursor Wait
- QueFileGroup 2 to [TempDirectory] Quietly
- GetQuedFiles Quietly
- CopyFiles from [InstallationDirectory] to [TempDirectory] Quietly
- VMASTER.EXE
- EndCopyFiles
- SetMouseCursor Wait
- If FileExists [WindowsSystemDirectory]\OEM5.INF
- SetMouseCursor Wait
- DeleteFiles from [WindowsSystemDirectory] Quietly
- OEM5.INF
- EndDeleteFiles
- EndIf
- SetMouseCursor Wait
- CopyFiles from [InstallationDirectory] to [WindowsSystemDirectory] Quietly
- OEM2302.ALI
- EndCopyFiles
- If FileExists [WindowsSystemDirectory]\OEM2302.INF
- SetMouseCursor Wait
- DeleteFiles from [WindowsSystemDirectory] Quietly
- OEM2302.INF
- EndDeleteFiles
- RenameFile [WindowsSystemDirectory]\OEM2302.ALI to OEM2302.INF
- else
- SetMouseCursor Wait
- RenameFile [WindowsSystemDirectory]\OEM2302.ALI to OEM2302.INF
- EndIf
- ClearScreen
- UpdateWindow
- EndProcedure
-
- Do SetupInstalit
- ;;Do PrepareSystemReport
- ;; FOR 1301 DCI DRIVERS INSTALLATION
- Dialog [YesOrNo1] @xy(Center,Center) WhiteOnBlack
- Would you like to install VideoWizard drivers?
- EndDialog
- If [YesOrNo1] = Y
- Do DCI
- SoLong Quietly
- else
- SoLong Quietly
- EndIf
-
- Procedure DCI
- ;;*************ALG1301on************
-
- If [String8] = [ALGRefRate]
- else
- ExamineTextFile [WindowsDirectory]\SYSTEM.INI
- If [String8] Contains [ALGRefRate]
- [String8] := LineWith ([,[ALGRefRate],])
- [Number7] := LineNumberWith ([,[ALGRefRate],])
- else
- ModifyTextFile [WindowsDirectory]\SYSTEM.INI NoBackup
- ;; InSection [ALGRefRate]
- AddOrChangeLineWith ([ALGRefRate],,) as "[ALGRefRate]" at End
- EndModifyTextFile
- Endif
- Endif
-
- ;;****************
-
- If [String2] = ALIDCI
- else
- If [String3] = iccvid.drv
- else
- If [String4] = indeov.drv
- else
- If [String5] = IR32.DLL
- else
- If [String6] = UDH.DLL
- else
- If [String7] = on
- else
-
-
-
- ExamineTextFile [WindowsDirectory]\SYSTEM.INI
- If [String2] Contains ALIDCI
- [String2] := LineWith ([,ALIDCI,])
- [Number1] := LineNumberWith ([,ALIDCI,])
- else
- If [String3] Contains iccvid.drv
- [String3] := LineWith ([,iccvid.drv,])
- [Number2] := LineNumberWith ([,iccvid.drv,])
- else
- If [String4] Contains indeov.drv
- [String4] := LineWith ([,indeov.drv,])
- [Number3] := LineNumberWith ([,indeov.drv,])
- else
- If [String5] Contains IR32.DLL
- [String5] := LineWith ([, IR32.DLL,])
- [Number4] := LineNumberWith ([, IR32.DLL,])
- else
- If [String6] Contains UDH.DLL
- [String6] := LineWith ([,UDH.DLL,])
- [Number5] := LineNumberWith ([,UDH.DLL,])
- else
- If [String7] Contains on
- [String7] := LineWith ([,on,])
- [Number6] := LineNumberWith ([,on,])
- else
-
- ModifyTextFile [WindowsDirectory]\SYSTEM.INI NoBackup
- InSection [drivers]
- AddOrChangeLineWith (DCI=,,) as "DCI=ALIDCI" at Beginning
- AddOrChangeLineWith (DCIVIDC.CVID=,,) as "DCIVIDC.CVID=iccvid.drv" at Beginning
- AddOrChangeLineWith (DCIVIDC.IV31=,,) as "DCIVIDC.IV31=indeov.drv" at Beginning
- AddOrChangeLineWith (VIDC.IV32=,,) as "VIDC.IV32=IR32.DLL" at Beginning
- AddOrChangeLineWith (VIDS.DRAW=,,) as "VIDS.DRAW=UDH.DLL" at Beginning
- InSection [ALGRefRate]
- AddOrChangeLineWith (ALG1301DCI=,,) as "ALG1301DCI=off" at Beginning
-
- EndModifyTextFile
- Endif
- EndIf
- EndIf
- EndIf
- Endif
- EndIf
- EndIf
- EndIf
- EndIf
- EndIf
- EndIf
- EndIf
- EndProcedure
-
-
- If [CommandLine1] = -ReplaceFiles
- SetReplacementInquiry Off
- EndIf
- If [CommandLine2] = -ReplaceFiles
- SetReplacementInquiry Off
- EndIf
- If [CommandLine3] = -ReplaceFiles
- SetReplacementInquiry Off
- EndIf
-
- If [InquireAboutSystemFileLocation] = NoCharacter
- If DriveIsPresent [BootDrive] ;; if not, COMSPEC has been changed
- NoSysFileConfirmation
- EndIf
- EndIf
-
- If [AskBeforeFileReplacement] = NoCharacter
- SetReplacementInquiry Off
- EndIf
- SoLong
-
- Procedure SetupInstalit
- SetCoordinatesTo 80x25
- If [UseShadows] = YesCharacter
- SetShadows On
- else
- SetShadows Off
- EndIf
- If [InquireAboutSystemFileLocation] = NoCharacter
- NoSysFileConfirmation
- EndIf
- [Black] := RGB(0,0,0)
- [White] := RGB(255,255,255)
- ;;SetMainBorderTo [MainBorder]
- SetPopupBorderTo [PopupBorder]
- SetModifyModeTo [ModifyMode]
- ;;SetShadowAttrTo DarkGrayOnBlack
- ;;SetScreenAttrTo [White]On[Black]
- ;;SetPopupAttrTo [PopupColors]
- SetAttentionAttrTo [AttentionColors]
- ;;SetTopLineAttrTo WhiteOnBrown
- SetTopLineTo [TopLine]
- ;;SetExitMessageTo "Installation complete!"
- ;;SetAllowExit
- EndProcedure
-